package nc.bs.voucher.itf;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONArray;

import nc.vo.pub.BusinessException;
import nccloud.dto.gl.lightgl.VoucherMDVO;

public interface IVourcherSumService {
	/**
	 * 汇总合集
	 * @param pk_accasoa 会计科目
	 * @param dbilldate  制单日期
	 * @param flag       是否凭证
	 * @return
	 * @throws BusinessException
	 */
    Map<String, Object> queryBookCombineInfos(String pk_accasoa, String dbilldate, boolean flag) throws BusinessException;
	
	/**
	 * 显示汇总凭证
	 * @param pk_vocher 凭证id
	 * @param ids [] // 前台勾选的汇总方式   1:按摘要汇总、2:按会计科目汇总、3:按辅助核算汇总 [ 1,2,3]
	 * @return
	 * @throws BusinessException
	 */
    VoucherMDVO showSumDetails(String pk_voucher, List<String> ids, List<String> fzhss) throws BusinessException;
	
	/**
	 * 查询辅助核算节点包含的信息
	 * @param pk_voucher
	 * @param pk_accountingbook
	 * @return
	 * @throws BusinessException
	 */
    JSONArray handlerchildrendatas(String pk_voucher, String pk_accountingbook) throws BusinessException;

	/**
	 *
	 * 获取凭证维护信息
	 * @param map
	 * @return
	 * @throws BusinessException
	 */
	Map queryVoucherInfo(Map<String, Object> map) throws BusinessException;

}
